Welcome to the Flutter SDK Installation Guide. This document provides step-by-step instructions for installing and configuring the Ditto SDK, enabling you to sync, query, and insert data seamlessly within your existing Flutter application.
1.9.20
or later
./android/settings.gradle
org.jetbrains.kotlin.android
plugin to 1.9.20
ios/Runner/Info.plist
:android/app/src/main/AndroidManifest.xml
.appID
and playground token
for your application. These are required to initialize the Ditto SDK.Ditto
. This is the main entry point into all Ditto-related functionality.items
:
insertData
function wherever appropriate in your application, such as in a button press handler.
items
collection:
observeData
function, typically in the initState
method of a stateful widget to start observing when the widget is initialized.
dispose()
method to prevent resource leaks
startSync
. This enables this device to sync data with other peers including the Ditto Cloud.
items
collection:
syncData
function, typically when initializing your Ditto instance.